package cn.dw.mm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.dw.mm.domain.Basic;
import cn.dw.mm.mapper.BasicMapper;
import cn.dw.mm.service.BasicService;

@Service
public class BasicServiceImpl implements BasicService{
/*
 * @author Guang
 * @date 2018/07/25 11:57
 * */
	//用@Resource也可以注入
	@Autowired
	private BasicMapper basicMapper;
	
	@Override
	public void add(Basic basic) {
		// TODO Auto-generated method stub
		basicMapper.add(basic);
	}

	@Override
	public void del(int id) {
		// TODO Auto-generated method stub
		basicMapper.del(id);
	}

	@Override
	public void mod(Basic basic) {
		// TODO Auto-generated method stub
		basicMapper.mod(basic);
	}

	@Override
	public Basic query(Integer id) {
		// TODO Auto-generated method stub
		return basicMapper.query(id);
	}
	
	@Override
	public List<Basic> selectAll(Basic basic) {
		// TODO Auto-generated method stub
		return basicMapper.selectAll(basic);
	}

}
